package org.evej.apiparser.model.character;

import org.evej.apiparser.model.ApiDocumentModel;

public class ApiBalance implements ApiDocumentModel{

    private static final long serialVersionUID = 2869365743L;

    private final double balance;
    private final int accountKey;
    private final int accountId;

    private ApiBalance(double balance, int accountKey, int accountId) {
        this.balance = balance;
        this.accountKey = accountKey;
        this.accountId = accountId;
    }

    public double getBalance() {
        return balance;
    }

    public int getAccountKey() {
        return accountKey;
    }

    public int getAccountId() {
        return accountId;
    }

    public static class Builder {
        private double balance;
        private int accountKey;
        private int accountId;

        public Builder setBalance(double balance) {
            this.balance = balance;
            return this;
        }

        public Builder setAccountKey(int accountKey) {
            this.accountKey = accountKey;
            return this;
        }

        public Builder setAccountId(int accountId) {
            this.accountId = accountId;
            return this;
        }

        public ApiBalance build() {
            return new ApiBalance(balance, accountKey, accountId);
        }
    }
}
